import request from '@/utils/request'

// 首页展示可领取的优惠券列表页
    export function listCoupon(recommendStatus) {
  return request({
    url: '/coupon/coupon/selectHomePageCoupon/' +recommendStatus,
    method: 'get'
  })
}


//领劵
export function receiveCoupon(data) {
  return request({
    url: '/coupon/coupon/receiveCoupon',
    method: 'post',
    data
  })
}


//显示用户已领取优惠卷
export function myCoupon(status) {
  return request({
    url: '/coupon/coupon/selectUserCoupon/'+status,
    method: 'get'
  })
}
